package test.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import test.domain.User;

public interface UserRepository extends JpaRepository<User, Integer> {

    User findByName(String name);

    List<User> findBySalary_GreaterThanAndPosition_OrderBySalary_Desc(int salary, String position);

}
